package com.xdap.pg.exam.entity;

import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.Style;
import com.definesys.mpaas.query.annotation.Table;

import java.util.Objects;

@Table("sampling_results")
@Style(Upper2Underline = true)
public class SamplingResults extends AbstractBasePojo implements java.io.Serializable {

    private static final long serialVersionUID = -3291060206300461759L;

    /**
     * Code
     */
    @Column("sampling_result_code")
    private String samplingResultCode;

    /**
     * No.
     */
    @Column("sampling_result_no")
    private String samplingResultNo;

    /**
     * Type
     */
    @Column("sampling_result_type")
    private String samplingResultType;

    /**
     * Group
     */
    @Column("sampling_result_group")
    private String samplingResultGroup;

    /**
     * Check Item
     */
    @Column("sampling_result_check_item")
    private String samplingResultCheckItem;

    /**
     * 备注
     */
    @Column("sampling_result_note")
    private String samplingResultNote;

    /**
     * Frequency
     */
    @Column("sampling_result_frequency")
    private String samplingResultFrequency;

    public SamplingResults() {
    }

    public String getSamplingResultCode() {
        return samplingResultCode;
    }

    public void setSamplingResultCode(String samplingResultCode) {
        this.samplingResultCode = samplingResultCode;
    }

    public String getSamplingResultNo() {
        return samplingResultNo;
    }

    public void setSamplingResultNo(String samplingResultNo) {
        this.samplingResultNo = samplingResultNo;
    }

    public String getSamplingResultType() {
        return samplingResultType;
    }

    public void setSamplingResultType(String samplingResultType) {
        this.samplingResultType = samplingResultType;
    }

    public String getSamplingResultGroup() {
        return samplingResultGroup;
    }

    public void setSamplingResultGroup(String samplingResultGroup) {
        this.samplingResultGroup = samplingResultGroup;
    }

    public String getSamplingResultCheckItem() {
        return samplingResultCheckItem;
    }

    public void setSamplingResultCheckItem(String samplingResultCheckItem) {
        this.samplingResultCheckItem = samplingResultCheckItem;
    }

    public String getSamplingResultNote() {
        return samplingResultNote;
    }

    public void setSamplingResultNote(String samplingResultNote) {
        this.samplingResultNote = samplingResultNote;
    }

    public String getSamplingResultFrequency() {
        return samplingResultFrequency;
    }

    public void setSamplingResultFrequency(String samplingResultFrequency) {
        this.samplingResultFrequency = samplingResultFrequency;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SamplingResults that = (SamplingResults) o;
        return Objects.equals(samplingResultCode, that.samplingResultCode) && Objects.equals(samplingResultNo, that.samplingResultNo) && Objects.equals(samplingResultType, that.samplingResultType) && Objects.equals(samplingResultGroup, that.samplingResultGroup) && Objects.equals(samplingResultCheckItem, that.samplingResultCheckItem) && Objects.equals(samplingResultNote, that.samplingResultNote) && Objects.equals(samplingResultFrequency, that.samplingResultFrequency);
    }

    @Override
    public int hashCode() {
        return Objects.hash(samplingResultCode, samplingResultNo, samplingResultType, samplingResultGroup, samplingResultCheckItem, samplingResultNote, samplingResultFrequency);
    }

    @Override
    public String toString() {
        return "SamplingResults{" +
                "samplingResultCode='" + samplingResultCode + '\'' +
                ", samplingResultNo='" + samplingResultNo + '\'' +
                ", samplingResultType='" + samplingResultType + '\'' +
                ", samplingResultGroup='" + samplingResultGroup + '\'' +
                ", samplingResultCheckItem='" + samplingResultCheckItem + '\'' +
                ", samplingResultNote='" + samplingResultNote + '\'' +
                ", samplingResultFrequency='" + samplingResultFrequency + '\'' +
                '}';
    }
}
